import { get, post, put, del } from '@/utils/http/request'
import { R, P } from '@/utils/http/type'

export interface StoreInfoType {
  id: string
  name: string
  mainCategory: number
  linkName: string
  linkPhone: string
  takeawayPhone: string
  businessHours: string
  businessState?: any
  description: string
  logo: string
  storeOuterPicture: string
  storeInsidePicture: string
  country: string
  province: string
  city: string
  district: string
  areaCodes: string
  address: string
  deliveryTime?: any
  averageRating: number
  state: number
}

export const getStoreInfo = () => {
  return get<R<StoreInfoType>>('http://43.139.98.171:3003/seller/store/info')
}
